﻿using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            for(int i=100;i<=999;i++)
            {
                int b, s, g;
                b = i/100;       ;
                if(i-b*100>=10)
                {
                    s = (i - b * 100) / 10;
                    g = (i-b*100)-s*10;
                }
               else
                {
                    g = i-b*100;
                    s = 0;
                }
                if(i==Math.Pow(b,3)+Math.Pow(s,3)+Math.Pow(g,3))
                {
                    Console.WriteLine("sxh " + i);
                }
            }
            Console.ReadKey();
        }
    }
}
